<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    

    <title>竹隐江南的博客</title>
    <meta name="author" content="dzy20@qq.com">
    
    <meta name="description" content="必须有人浴血奋战，世上才有自由可言！">
    
    
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    
    <meta property="og:site_name" content="必须有人浴血奋战，世上才有自由可言！"/>

    
    <meta property="og:image" content="undefined"/>
    

    <link rel="icon" type="image/png" href="/favicon.png">
    <link rel="alternate" href="/atom.xml" title="必须有人浴血奋战，世上才有自由可言！" type="application/atom+xml">
    <link rel="stylesheet" href="/css/lib/materialize.min.css">
    <link rel="stylesheet" href="/css/lib/font-awesome.min.css">
    <link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">

    
        <link rel="stylesheet" href="/css/lib/prettify-tomorrow-night-eighties.css" type="text/css">
    
    <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>


<body>
    <img src="/weixin_favicon.png" style="position: absolute; left: -9999px; opacity: 0; filter: alpha(opacity=0);">

    <nav class="green">
    <div class="nav-wrapper">
        <a href="#" data-activates="main-menu" class="button-collapse">
            <i class="fa fa-navicon"></i>
        </a>
        <div class="">
            <a href="/" class="brand-logo hide-on-med-and-down">必须有人浴血奋战，世上才有自由可言！</a>
            <ul class="right hide-on-med-and-down">
                
                    <li>
                        <a class="menu-home " href="/" >
                            <i class="fa fa-home "></i>
                            
                            首页
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-archive " href="/archives" >
                            <i class="fa fa-archive "></i>
                            
                            归档
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-category category-menu" href="javascript:;" data-activates="category-menu" >
                            <i class="fa fa-bookmark "></i>
                            
                            分类
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-reading " href="/reading" >
                            <i class="fa fa-book "></i>
                            
                            读书
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-about " href="/about" >
                            <i class="fa fa-user "></i>
                            
                            关于
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-search modal-trigger " href="#search" >
                            <i class="fa fa-search "></i>
                            
                            搜索
                        </a>
                    </li>
                
            </ul>
            <div>
    <ul class="side-nav green darken-1" id="main-menu">
        
        <li class="side-user">
            <div class="row">
                <div class="col s4 no-padding">
                    <img class="avatar-image circle responsive-img" src="https://static.oschina.net/uploads/user/728/1456911_100.jpg?t=1393495702000" alt="User Avatar">
                </div>
                <div class="info col s8 valign-wrapper no-padding">
                    <div class="valign">
                        <p class="name">竹隐江南</p>
                        <p class="desc">Java后端/技术宅</p>
                    </div>
                </div>
            </div>
        </li>
        

        
            <li class="no-padding">
                <a class="waves-effect menu-home " href="/" >
                    <i class="fa fa-home "></i>
                    
                    首页
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-archive " href="/archives" >
                    <i class="fa fa-archive "></i>
                    
                    归档
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-category category-menu" href="javascript:;" data-activates="category-menu" >
                    <i class="fa fa-bookmark "></i>
                    
                    分类
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-reading " href="/reading" >
                    <i class="fa fa-book "></i>
                    
                    读书
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-about " href="/about" >
                    <i class="fa fa-user "></i>
                    
                    关于
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-search modal-trigger " href="#search" >
                    <i class="fa fa-search "></i>
                    
                    搜索
                </a>
            </li>
        
    </ul>

    <ul class="side-nav green darken-1" id="category-menu">
    

            

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/hive/">
                    hive <span class="right">2 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/Docker/">
                    Docker <span class="right">10 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/操作系统/">
                    操作系统 <span class="right">7 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/系统架构/">
                    系统架构 <span class="right">2 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/DevOps-CI/">
                    DevOps-CI <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/SSL/">
                    SSL <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/springboot/">
                    springboot <span class="right">8 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/Linux/">
                    Linux <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-1" collapse-level="1">
                <a class="no-padding" href="/categories/Linux/Tomcat/">
                    Tomcat <span class="right">1 篇</span></a>
                </a>
            </li>

        

    </ul>
</div>

        </div>
    </div>
</nav>

<div id="search" class="modal search-modal">
    <div class="row">
        <div class="input-field col s12">
              <input id="search-input" type="text">
              <label for="search-input">搜索</label>
        </div>

    </div>
    <div id="search-result" class="search-result col s12">

    </div>
</div>


    <main>
        

<div class="slider">
    <ul class="slides">
    
       <li>
           <a href="javascript:;">
               <img class="slider-image" src="https://static.oschina.net/uploads/img/201701/18173351_4QWW.jpg">
               <div class="caption left-align">
                 <h4>芸芸众生</h3>
                 <h5 class="light grey-text text-lighten-3">四海为家的人遇到的人越多，越相信，相信一个陌生人不难</h5>
               </div>
           </a>
       </li>
    
       <li>
           <a href="javascript:;">
               <img class="slider-image" src="https://static.oschina.net/uploads/img/201701/18174014_uawN.jpg">
               <div class="caption right-align">
                 <h4>宁静致远</h3>
                 <h5 class="light grey-text text-lighten-3">每个认真生活的人，都值得被认真对待</h5>
               </div>
           </a>
       </li>
    
       <li>
           <a href="http://dengzy007hi.oschina.io/about/">
               <img class="slider-image" src="http://raytaylorlin-blog.qiniudn.com/image%2Fslider%2Fabout.png">
               <div class="caption right-align">
                 <h4>阅读“关于”</h3>
                 <h5 class="light grey-text text-lighten-3">了解我一下</h5>
               </div>
           </a>
       </li>
    
   </ul>
 </div>



<div id="article-list" class="container main-container">
    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/08/16/Let's Encrypt 泛域名SSL证书申请/">Let&#39;s Encrypt 泛域名SSL证书申请</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-08-15T16:20:00.000Z"><a href="/2018/08/16/Let's Encrypt 泛域名SSL证书申请/">2018-08-16</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/服务器/" class="chip red lighten-1">服务器</a>
        
            <a href="/tags/SSL/" class="chip red lighten-1">SSL</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Let’s-Encrypt-泛域名SSL证书申请"><a href="#Let’s-Encrypt-泛域名SSL证书申请" class="headerlink" title="Let’s Encrypt 泛域名SSL证书申请"></a>Let’s Encrypt 泛域名SSL证书申请</h1><p>最近在折腾自己的小网站，在规划一些项目，所以搞了一台简单的腾讯云，弄了域名，域名正在备案中….</p>
<p>在这个过程中突然发现我手里还有一个域名备案过的，一直没有用，所以就直接解析到我目前的小网站上了，新的域名备案完成，也会解析过来的。</p>
<p>Let’s Encrypt 于2018年3月14日在其官网发布了一篇<a href="https://community.letsencrypt.org/t/acme-v2-and-wildcard-certificate-support-is-live/55579">《ACME v2 and Wildcard Certificate Support is Live》</a>的文章，也就预示着免费的泛域名证书正式来袭，泛域名会给你节省多少钱呢？对比腾讯卖的最贵的是一年4万。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/08/16/Let&#39;s Encrypt 泛域名SSL证书申请/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/08/09/Docker容器实战(十)安装单机Kafka/">Docker容器实战(十)安装单机Kafka</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-08-08T16:20:00.000Z"><a href="/2018/08/09/Docker容器实战(十)安装单机Kafka/">2018-08-09</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器实战-十-安装单机Kafka"><a href="#Docker容器实战-十-安装单机Kafka" class="headerlink" title="Docker容器实战(十)安装单机Kafka"></a>Docker容器实战(十)安装单机Kafka</h1><p>在搞微服务的消息总线的时候，需要一个消息队列，所以就有了这一篇。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/08/09/Docker容器实战(十)安装单机Kafka/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/30/Docker容器实战(九)安装NGINX/">Docker容器实战(九)安装NGINX</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-30T15:51:20.158Z"><a href="/2018/07/30/Docker容器实战(九)安装NGINX/">2018-07-30</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器实战-九-安装NGINX"><a href="#Docker容器实战-九-安装NGINX" class="headerlink" title="Docker容器实战(九)安装NGINX"></a>Docker容器实战(九)安装NGINX</h1><p>上篇写的利用Dockerfile创建的MYSQL，这篇使用镜像创建Nginx</p>
<blockquote>
<p> 其实写完这篇，剩下的Redis与mongdb都可以参考这两篇来了，思路操作一模一样。</p>
<p> 不过实话说，nginx是我唯一觉得用docker安装比较繁琐的，当然配置好一次之后，是快的。仅限初次安装。</p>
</blockquote>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/30/Docker容器实战(九)安装NGINX/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/30/Docker容器实战(八)安装MYSQL/">Docker容器实战(八)安装MYSQL8</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-30T10:00:29.515Z"><a href="/2018/07/30/Docker容器实战(八)安装MYSQL/">2018-07-30</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器实战-八-安装MYSQL8"><a href="#Docker容器实战-八-安装MYSQL8" class="headerlink" title="Docker容器实战(八)安装MYSQL8"></a>Docker容器实战(八)安装MYSQL8</h1><p>开始写几篇实战，想着常用的:mysql,nginx,redis,mongdb，完了之后会写K8S。直接放弃了Docker三剑客。直接上K8S。K8S预估不会写的很多，然后会写点开源的SAAS平台，做私有云平台。然后会写点微服务的事，然后写系统优化，巴拉巴拉巴拉。</p>
<blockquote>
<p> 等着全套的DevOps系统写完了，推荐几个平台，然后企业私有云也就有了，再也不用折腾安装时的环境了，万岁，团队也就不用我自己来做架构，做运维，做DevOps，做监控，做管理，做培训~~</p>
<p> 越写越感觉现在技术的进步性，越想着做业务，做管理….</p>
<p> 不过WOW中有句话说，不想打DPS的治疗不是好治疗( ╯□╰ ) </p>
<p> 呸呸呸，不想懂技术的不是一个好的技术总监(●’◡’●):v:</p>
</blockquote>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/30/Docker容器实战(八)安装MYSQL/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/27/Docker容器阶段总结(七)常用命令/">Docker容器阶段总结(七)常用命令</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-27T07:54:50.344Z"><a href="/2018/07/27/Docker容器阶段总结(七)常用命令/">2018-07-27</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器阶段总结-七-常用命令"><a href="#Docker容器阶段总结-七-常用命令" class="headerlink" title="Docker容器阶段总结(七)常用命令"></a>Docker容器阶段总结(七)常用命令</h1><p>在前面几篇文章中里面已经可以满足对Docker的日常使用，后续的会更新实战和高级使用。对上一个阶段的学习进行一个简单的汇总，总结一下前面几篇用到的命令。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/27/Docker容器阶段总结(七)常用命令/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/27/Docker容器学习进阶(六)使用网络/">Docker容器学习进阶(六)使用网络</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-27T06:36:23.026Z"><a href="/2018/07/27/Docker容器学习进阶(六)使用网络/">2018-07-27</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器学习进阶-六-使用网络"><a href="#Docker容器学习进阶-六-使用网络" class="headerlink" title="Docker容器学习进阶(六)使用网络"></a>Docker容器学习进阶(六)使用网络</h1><p>在前面几篇文章中里面涉及到了网络使用，可能大家没有仔细关注，这篇对网络设置进行一个初级说明，高级的网络设置博主也还没有玩明白，正在攻克和实验中。本篇仅仅是讲解常规网络使用、容器互联、配置DNS。高级的网络设置等待博主补文吧，涉及到控制访问、网桥等内容。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/27/Docker容器学习进阶(六)使用网络/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/26/Docker容器学习进阶(五)数据管理/">Docker容器学习进阶(五)数据管理</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-26T07:13:31.996Z"><a href="/2018/07/26/Docker容器学习进阶(五)数据管理/">2018-07-26</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器学习进阶-五-数据管理"><a href="#Docker容器学习进阶-五-数据管理" class="headerlink" title="Docker容器学习进阶(五)数据管理"></a>Docker容器学习进阶(五)数据管理</h1><p>在容器管理数据主要有两种方式</p>
<ul>
<li><p>数据卷(Volumes)</p>
</li>
<li><p>挂在主机目录(Bind mounts)</p>
<p>图例如下<img src="https://i.loli.net/2018/07/26/5b59793094472.png" alt=""></p>
</li>
</ul>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/26/Docker容器学习进阶(五)数据管理/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/25/Docker容器学习进阶（四）Dockerfile定制容器/">Docker容器学习进阶（四）Dockerfile定制容器</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-25T08:20:00.000Z"><a href="/2018/07/25/Docker容器学习进阶（四）Dockerfile定制容器/">2018-07-25</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="使用Dockerfile定制镜像"><a href="#使用Dockerfile定制镜像" class="headerlink" title="使用Dockerfile定制镜像"></a>使用Dockerfile定制镜像</h1><p>如果你仅仅需要怎么用，那就直接看本文，如果你看完本文想了解或者看之前想了解Docker制作镜像的一些原因，可以去查看一下docker commit进行定制镜像，强烈建议使用Dockerfile进行镜像定制，docker commit仅仅只用作理解其工作原理。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/25/Docker容器学习进阶（四）Dockerfile定制容器/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/24/Docker容器初级学习（三）操作容器/">Docker容器初级学习（三）操作容器</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-24T09:20:00.000Z"><a href="/2018/07/24/Docker容器初级学习（三）操作容器/">2018-07-24</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/云服务/" class="chip red lighten-1">云服务</a>
        
            <a href="/tags/Docker/" class="chip red lighten-1">Docker</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="Docker容器初级学习（三）操作容器"><a href="#Docker容器初级学习（三）操作容器" class="headerlink" title="Docker容器初级学习（三）操作容器"></a>Docker容器初级学习（三）操作容器</h1><h2 id="启动容器"><a href="#启动容器" class="headerlink" title="启动容器"></a>启动容器</h2><ul>
<li><p>新建并启动</p>
<p>其主要命令为：<code>docker run</code>  使用ubuntu系统打印hello world后终止，如果想交互，加入 -t -i参数进行交互</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">[root@vultr ~]# docker run ubuntu /bin/echo &apos;Hello World&apos;</div><div class="line">Unable to find image &apos;ubuntu:latest&apos; locally</div><div class="line">latest: Pulling from library/ubuntu</div><div class="line">7996ebd2246a: Pull complete</div><div class="line">de532f9a4f9f: Pull complete</div><div class="line">7de2709b2a83: Pull complete</div><div class="line">70b6ac64a142: Pull complete</div><div class="line">23caf550e032: Pull complete</div><div class="line">Digest: sha256:30e04ddada6eb09c12330c7df72cad1573916c7100168c34076808169ff6d805</div><div class="line">Status: Downloaded newer image for ubuntu:latest</div><div class="line">Hello World</div></pre></td></tr></table></figure>
</li>
</ul>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/24/Docker容器初级学习（三）操作容器/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2018/07/19/搭建海外VPS超越The Wall（转载）/">搭建海外VPS超越The Wall(转载)</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2018-07-19T14:30:00.000Z"><a href="/2018/07/19/搭建海外VPS超越The Wall（转载）/">2018-07-19</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/操作系统/" class="chip red lighten-1">操作系统</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="搭建海外VPS超越The-Wall-转载"><a href="#搭建海外VPS超越The-Wall-转载" class="headerlink" title="搭建海外VPS超越The Wall(转载)"></a>搭建海外VPS超越The Wall(转载)</h1><p>作为软件开发者总是必不可免的需要翻越一下互联网外面的世界，因此偶然机会我发现的Vultr云服务器，接着找了一下攻略，因为我一直在用ShadowSocks，俗称纸飞机，然后我就自己搭建了一遍，全部历时大概30分钟就可以了。具体的参考了一下文章</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2018/07/19/搭建海外VPS超越The Wall（转载）/">阅读全文</a>
        </ div>
        
    </div>
</article>

    

    <ul class="pagination center-align">
    <li class="disabled">
        <a href="/"><i class="fa fa-angle-left"></i></a>
    </li>
    
    
        <li class="active red"><a href="/">1</a></li>
    
        <li class="waves-effect"><a href="/page/2">2</a></li>
    
        <li class="waves-effect"><a href="/page/3">3</a></li>
    
        <li class="waves-effect"><a href="/page/4">4</a></li>
    
    
    <li class="">
        <a href="/page/2/"><i class="fa fa-angle-right"></i></a>
    </li>
 </ul>

</div>

        <div class="fixed-action-btn float-sitemap">
    <a class="btn-floating btn-large red">
      <i class="fa fa-caret-square-o-up"></i>
    </a>
    <ul>
      <li><a class="btn-return-top btn-floating waves-effect cyan" title="回到顶部"><i class="fa fa-arrow-circle-o-up"></i></a></li>
      <li><a class="btn-floating waves-effect button-collapse light-green"  data-activates="main-menu" title="menu"><i class="fa fa-navicon"></i></a></li>
    </ul>
  </div>

    </main>
    <footer class="page-footer green darken-1">
    
    <div class="container">
        <div class="row">
            
            <div class="social-group col m4 s12">
                <h5 class="white-text">社交</h5>
                
                    <a class="social-link" href="http://weibo.com/bambooJN" target="_blank">
                        <i class="fa fa-2x fa-weibo"></i>
                    </a>
                
                    <a class="social-link" href="https://git.oschina.net/dengzy007hi" target="_blank">
                        <i class="fa fa-2x fa-github"></i>
                    </a>
                
                    <a class="social-link" href="/atom.xml" target="_blank">
                        <i class="fa fa-2x fa-rss"></i>
                    </a>
                
                <div class="site-visitors-container white-text">
                    <span>
                        <i class="fa fa-user"></i>
                        <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
                    </span>
                    <span>&nbsp;|&nbsp;</span>
                    <span>
                        <i class="fa fa-eye"></i>
                        <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
                    </span>
                </div>
            </div>
            

            
            <div class="col m8 s12">
                <h5 class="white-text">友情链接</h5>
                
                    <a class="social-link" href="https://www.oschina.net" target="_blank">开源中国</a>
                
                    <a class="social-link" href="http://jdkleo.iteye.com/" target="_blank">JDKLEO</a>
                
                    <a class="social-link" href="http://pkaq.org/" target="_blank">如是我闻</a>
                
            </div>
            
        </div>
    </div>
    

    <div class="footer-copyright red-link-context">
        <div class="container">
            © 2017 dzy20@qq.com, All rights reserved.
            <p class="right" style="margin-top: 0;">本博客由 <a href="https://hexo.io">Hexo</a> 强力驱动 | 主题 <a href="https://github.com/raytaylorlin/hexo-theme-raytaylorism">raytaylorism</a></p>
        </div>
    </div>
</footer>


    <noscript>
    <div class="noscript">
        <p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能，请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
    </div>
</noscript>
<div class="noscript">
    <p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能，请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
</div>


<script src="/js/jquery.min.js"></script>
<script src="/js/materialize.min.js"></script>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>

<script>
    (function($) {
        $(document).ready(function() {
            // 隐藏禁用javascript（针对微信内置浏览器）的提示
            $('.noscript').hide();

            // 图片缩放效果
            var $imgs = $('img').not('.slider-image').not('.avatar-image').not('.carousel-image').not('.card-cover-image').not('.qrcode');

            // 给图片加上点击放大效果（materialbox插件）
            $imgs.addClass('materialboxed').each(function(i, el) {
                $(this).attr('data-caption', $(this).attr('alt') || ' ');
            }).materialbox();

            // 优化表格的显示
            $('table').each(function() {
                var $table = $(this);
                // 除去多行代码的情况
                if ($table.find('pre').length == 0) {
                    $table.addClass('responsive-table striped bordered');
                }
            });

            // 首页幻灯片
            $('.slider').slider({indicators: true, full_width: true, interval: 8000});

            $(".button-collapse").sideNav();
            $(".category-menu").sideNav();

            // 针对gallery post
            $('.carousel').carousel({full_width: true});
            $('.carousel-control.prev').click(function() {
                $('.carousel').carousel('prev');
            });
            $('.carousel-control.next').click(function() {
                $('.carousel').carousel('next');
            });

            // 文章目录
            $('article').not('.simple-article').find('h1').add('h2').add('h3').add('h4').add('h5').add('h6').scrollSpy();

            // 目录随屏幕滚动（防止目录过长越过footer）
            var $toc = $('.toc');
            var scrollTargetTop = 0;
            $(window).scroll(function() {
                var $activeLink = $toc.find('a.active.section');
                if ($(window).scrollTop() < 100) {
                    scrollTargetTop = 0;
                } else {
                    if ($activeLink[0]) {
                        scrollTargetTop = $activeLink.offset().top - $toc.offset().top;
                    }
                }
                $toc.css('top', '-' + scrollTargetTop + 'px');
            });

            // 修正文章目录的left-border颜色
            var color = $('.table-of-contents-text').css('color');
            $('.table-of-contents-link').css('border-left-color', color);

            // 针对移动端做的优化：FAB按钮点击一下收回
            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
                $('.fixed-action-btn').addClass('click-to-toggle');
            }
            // 回到顶部
            $('.btn-return-top').click(function() {
                $('body, html').animate({
                    scrollTop: 0
                }, 500);
            });

            // 重置读书页面的Tab标签页的颜色
            $('li.tab a').hover(function() {
                $(this).toggleClass('text-lighten-4');
            });
            $('.indicator').addClass('red lighten-2');

            
            // 添加new标签
            $('.menu-about').append('<span class="new badge red"></span>');
            

            // 搜索功能
            $('.modal-trigger').leanModal({
                // 打开搜索框时自动聚焦
                ready: function() {
                    if ($('#search').is(":visible")) {
                        $('#search-input').focus();
                    }
                }
            });
            var searchXml = "search.xml";
            if (searchXml.length == 0) {
             	searchXml = "search.xml";
            }
            var searchPath = "/" + searchXml;
            initSearch(searchPath, 'search-input', 'search-result');
        });

        // 初始化搜索与匹配函数
        var initSearch = function(path, search_id, content_id) {
            'use strict';
            $.ajax({
                url: path,
                dataType: "xml",
                success: function(xmlResponse) {
                    // get the contents from search data
                    var datas = $("entry", xmlResponse).map(function() {
                        return {
                            title: $("title", this).text(),
                            content: $("content", this).text(),
                            url: $("url", this).text()
                        };
                    }).get();
                    var $input = document.getElementById(search_id);
                    var $resultContent = document.getElementById(content_id);
                    $input.addEventListener('input', function() {
                        var str = '<ul class=\"search-result-list\">';
                        var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                        $resultContent.innerHTML = "";
                        if (this.value.trim().length <= 0) {
                            return;
                        }
                        // perform local searching
                        datas.forEach(function(data) {
                            var isMatch = true;
                            var content_index = [];
                            var data_title = data.title.trim().toLowerCase();
                            var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                            var data_url = data.url;
                            var index_title = -1;
                            var index_content = -1;
                            var first_occur = -1;
                            // only match artiles with not empty titles and contents
                            if (data_title != '' && data_content != '') {
                                keywords.forEach(function(keyword, i) {
                                    index_title = data_title.indexOf(keyword);
                                    index_content = data_content.indexOf(keyword);
                                    if (index_title < 0 && index_content < 0) {
                                        isMatch = false;
                                    } else {
                                        if (index_content < 0) {
                                            index_content = 0;
                                        }
                                        if (i == 0) {
                                            first_occur = index_content;
                                        }
                                    }
                                });
                            }
                            // show search results
                            if (isMatch) {
                                keywords.forEach(function(keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    data_title = data_title.replace(regS, "<span class=\"search-keyword red lighten-2\">" + keyword + "</span>");
                                });

                                str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                                var content = data.content.trim().replace(/<[^>]+>/g, "");
                                if (first_occur >= 0) {
                                    // cut out 100 characters
                                    var start = first_occur - 20;
                                    var end = first_occur + 80;
                                    if (start < 0) {
                                        start = 0;
                                    }
                                    if (start == 0) {
                                        end = 100;
                                    }
                                    if (end > content.length) {
                                        end = content.length;
                                    }
                                    var match_content = content.substring(start, end);
                                    // highlight all keywords
                                    keywords.forEach(function(keyword) {
                                        var regS = new RegExp(keyword, "gi");
                                        match_content = match_content.replace(regS, "<span class=\"search-keyword red lighten-2\">" + keyword + "</span>");
                                    });

                                    str += "<p class=\"search-result\">..." + match_content + "...</p>"
                                }
                                str += "</li>";
                            }
                        });
                        str += "</ul>";
                        $resultContent.innerHTML = str;
                    });
                }
            });
        }
    })(jQuery);
</script>


<script src="/js/prettify.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("pre").addClass("prettyprint");
        prettyPrint();
    });
</script>








</body>
</html>
